package com.situ.mall.base.vo;

import com.situ.mall.base.util.C;
import lombok.Data;

import java.math.BigDecimal;

/**
 * ClassName: CartVO
 * Package: com.situ.mall.order.vo
 * Description:
 *
 * @Author Darling_达
 * @Create 2023-04-06 10:36
 * @Version 1.0
 */

// 是一条购物车数据
@Data
public class CartVO {

    private Integer id; // 购物车数据的ID
    private String productImg;
    private String productName;
    private BigDecimal price;
    private Integer count;

    private String imgPath;
    public String getImgPath() {
        return C.UPLOAD_PATH_PREFIX + productImg;
    }

}
